package com.mt.roll.wms.params;

import com.mt.roll.core.base.BaseParam;
import com.mt.roll.core.vo.CommonVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @auther yanyang
 * @date 2022/1/13 16:44
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "设备属性", description = "用于动态添加设备属性", parent = CommonVo.class)

public class EquipmentAttrParam extends BaseParam {

    private static final long serialVersionUID = 1L;
    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键", example = "1")
    private Long id;

    /**
     * 添加时间
     */
    @ApiModelProperty("create_time")
    private LocalDateTime createTime;

    /**
     * 设备外键
     */
    @ApiModelProperty(value = "equipment_id", example = "1")
    private Long equipmentId;

    /**
     * 属性名
     */
    @ApiModelProperty(value = "attr_name",example = "属性1")
    private String attrName;

    /**
     * 属性值
     */
    @ApiModelProperty(value = "attr_content",example = "30")
    private String attrContent;

}
